package com.zhongxing.hdy.spritel_hdy.util;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/6/30.
 */

public class ToastUtil {
    private static Toast toast;

    public static void toast(Context context, String text) {

        if (toast == null) {
            toast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
        }else {
            toast.setText(text);
        }
        toast.show();
    }
}
